package com.yx.feign.api;

import com.yx.vo.Order;
import com.yx.vo.OrderDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Classname OrderService
 * @Date 2021/07/23 19:10
 * @Author by yx
 * @Description TODO:
 */
@FeignClient(
        name = "order",
        path = "/orderController"
)
public interface OrderService {

    @GetMapping("/getOrderByOid/{oid}")
    Order getOrderByOid(@PathVariable String oid);
    @PostMapping("/getOrderDetailListByOid")
    List<OrderDetail> getOrderDetailListByOid(@RequestParam String oid);
    @PostMapping("/updateOrderStatus")
    void updateOrderStatus(@RequestParam("out_trade_no") String out_trade_no, @RequestParam("status") Integer status);
    @GetMapping("/wxgetOrderByOid/{oid}")
    Order wxgetOrderByOid(@PathVariable String oid);
}
